package com.skywoody.barcode;

final class Helper {
	
	private Helper() {
		
	}
	
	public static void checkString(String str, String paraName) {
		if (str == null) {
			throw new NullPointerException("The " + paraName + " parameter can't be null.");
		}
		
		if (str.trim().isEmpty()) {
			throw new IllegalArgumentException("The " + paraName + " paramenter can't be empty.");
		}
	}

}
